package com.zecan.blog.vo.tag;

import com.sun.org.apache.bcel.internal.generic.NEW;
import com.zecan.blog.vo.article.ArticleMsgVo;
import lombok.Data;

import java.util.List;

/**
 * @ClassName TagMsgVo
 * @Description
 * @date 2022/11/15 14:58
 * @Version 1.0
 */
@Data
public class TagMsgVo {

    List<ArticleMsgVo> articleMsgVos;

    Integer tagCount;//当前根据标签id查询到的文章的总数


    public static TagMsgVo tagMsgBuilder(List<ArticleMsgVo> articleMsgVos,Integer tagCount ) {
        TagMsgVo tagMsgVo = new TagMsgVo();
        tagMsgVo.articleMsgVos = articleMsgVos;
        tagMsgVo.tagCount = tagCount;
        return tagMsgVo;
    }
}
